home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software 2000
/
Software 2000 Volume 1 (Disc 1 of 2).iso
/
utilities
/
u117.dms
/
in.adf
/
include
/
assert.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-12-04
|
317 b
|
14 lines
#ifndef ASSERT_H
#define ASSERT_H
#ifdef NDEBUG
#define assert(cond)
#else
/* NorthC does not define __FILE__ and __LINE__ */
static char __AssertFmt[] = "assert failed in '%s' at line %d.\n";
#define assert(cond) if(!(cond)) \
{ fprintf(stderr, __AssertFmt, __FILE__, __LINE__); abort(); }
#endif
#endif ASSERT_H